package com.wm.blog_common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 按钮权限表
 * </p>
 *
 * @author wm_yu
 * @since 2020-05-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ToString(callSuper = true)
public class TButtonPermission implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 按钮请求地址
     */
    private String url;

    /**
     * 所属角色id ,1,2,3
     */
    private String roleId;

    /**
     * 状态: 0.禁用 1.启用
     */
    private Integer status;

    /**
     * 创建人
     */
    private String creator;

    /**
     * 修改人
     */
    private String editor;

    private Date createTime;

    private Date updateTime;

    /**
     * 排序字段,数字越大,排序越靠前
     */
    private Integer sort;

    private String summary;

    /**
     * 按钮归属菜单id
     */
    private Long menuId;

}
